import { Injectable } from '@angular/core';
import { ToolItem, ToolType, ToolMode } from '../entity/ToolItem';

@Injectable({
  providedIn: 'root'
})
export class ToolboxService {

  private tools: ToolItem[] = [
    {name: 'move',  title: 'Move', type: ToolType.MOVE, mode: ToolMode.SELECT, isPalette: false },
    {name: 'pen',   title: 'Pen', type: ToolType.PEN, mode: ToolMode.SELECT, isPalette: true },
    {name: 'text',  title: 'Text', type: ToolType.TEXT, mode: ToolMode.SELECT, isPalette: true },
    {name: 'cutter',title: 'Erase', type: ToolType.CUTTER, mode: ToolMode.SELECT, isPalette: false },
    {name: 'delete',title: 'Erase All', type: ToolType.DELETE, mode: ToolMode.CLICK, isPalette: false },
    {name: 'cloud', title: 'Cloud', type: ToolType.CLOUD, mode: ToolMode.SELECT, isPalette: false },
    // {name: 'team',  title: 'Team', type: ToolType.TEAM, mode: ToolMode.SELECT, isPalette: false },
    {name: 'mute_video',  title: 'Mute Video', type: ToolType.MUTE_VIDEO, mode: ToolMode.PUSH, isPalette: false, isActive: false },
  ];

  constructor() { 

  }
  
  getTools(): ToolItem[] {
    return this.tools;
  }

}
